package netty.rpc.register;

import org.omg.CORBA.PUBLIC_MEMBER;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 注册中心配置文件
 * @author Jim
 * @version 1.0.0
 * @descripition:
 * @date 2022/5/25 22:05
 */
@ConfigurationProperties(prefix = RegisterProperties.REGISTER_PROPETEIS_PREFIX)
public class RegisterProperties {

    public static final String REGISTER_PROPETEIS_PREFIX = "simple.netty.rpc.register";

    /**
     * 注册地址
     */
    String registryAddress;

    /**
     * 会话超时时间
     */
    int sessionTimeOut;

    /**
     * 连接超时时间
     */
    int connectionTimeOut;

    public int getSessionTimeOut() {
        return sessionTimeOut;
    }

    public void setSessionTimeOut(int sessionTimeOut) {
        this.sessionTimeOut = sessionTimeOut;
    }

    public int getConnectionTimeOut() {
        return connectionTimeOut;
    }

    public void setConnectionTimeOut(int connectionTimeOut) {
        this.connectionTimeOut = connectionTimeOut;
    }

    public String getRegistryAddress() {
        return registryAddress;
    }

    public void setRegistryAddress(String registryAddress) {
        this.registryAddress = registryAddress;
    }
}
